package com.itheima.features.inputstream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class InputStreamDemo {

    public static void main(String[] args) throws Exception {

        FileInputStream fileInputStream = new FileInputStream("D:\\2019.7.30heima\\1.wmv");
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\2019.7.30heima\\2.wmv");

        fileInputStream.transferTo(fileOutputStream);

        fileInputStream.close();
        fileOutputStream.close();
    }
}
